package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品信息对象 goods
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private List<String> tags;
    private List<Object> goodsTags;
    private String primaryDescImage;
    private String primaryDetailImage;
    /** spuid */
    private Long spuId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String title;

    /** 主图 */
    @Excel(name = "主图")
    private String primaryImage;

    /** 所需积分 */
    @Excel(name = "所需积分")
    private Long minSalePrice;

    /** 提示信息 */
    @Excel(name = "提示信息")
    private String limitTxt;

    /** 库存 */
    @Excel(name = "库存")
    private Long spuStockQuantity;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public List<Object> getGoodsTags() {
        return goodsTags;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public void setGoodsTags(List<Object> goodsTags) {
        this.goodsTags = goodsTags;
    }

    public String getPrimaryDescImage() {
        return primaryDescImage;
    }

    public void setPrimaryDescImage(String primaryDescImage) {
        this.primaryDescImage = primaryDescImage;
    }

    public String getPrimaryDetailImage() {
        return primaryDetailImage;
    }

    public void setPrimaryDetailImage(String primaryDetailImage) {
        this.primaryDetailImage = primaryDetailImage;
    }

    public void setSpuId(Long spuId)
    {
        this.spuId = spuId;
    }

    public Long getSpuId()
    {
        return spuId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setPrimaryImage(String primaryImage)
    {
        this.primaryImage = primaryImage;
    }

    public String getPrimaryImage()
    {
        return primaryImage;
    }

    public void setMinSalePrice(Long minSalePrice)
    {
        this.minSalePrice = minSalePrice;
    }

    public Long getMinSalePrice()
    {
        return minSalePrice;
    }

    public void setLimitTxt(String limitTxt)
    {
        this.limitTxt = limitTxt;
    }

    public String getLimitTxt()
    {
        return limitTxt;
    }

    public void setSpuStockQuantity(Long spuStockQuantity)
    {
        this.spuStockQuantity = spuStockQuantity;
    }

    public Long getSpuStockQuantity()
    {
        return spuStockQuantity;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("spuId", getSpuId())
            .append("title", getTitle())
            .append("primaryImage", getPrimaryImage())
            .append("minSalePrice", getMinSalePrice())
            .append("limitTxt", getLimitTxt())
            .append("spuStockQuantity", getSpuStockQuantity())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
